package com.huarui.button;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.task.Engine;
import org.ewaf.framework.task.Handler;

public class ButtonEngine implements Engine{

	/**
	 * Engin类型
	 */
	private String type;
	
	/**
	 * 组别(key)和对应按钮集合信息(value)
	 */
	private Map<String, List<Handler>> handlersMap ;

	public Map<String, List<Handler>> getHandlersMap() {
		return handlersMap;
	}

	public void setHandlersMap(Map<String, List<Handler>> handlersMap) {
		this.handlersMap = handlersMap;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Override
	public String getType() {
		return type;
	}

	@Override
	public List<Handler> getHandlers(String id) {
				
		return handlersMap.get(id);
		
	}

	
}
